package com.cyf.selfhelppay.network.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.RequestParam;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 请求：自助缴费机获取二维码字符串
 * Created by cage on 2017/4/15.
 */
@Api
public class SHPayGetQrcodeReq extends SHPayBusinessReq {
    /** 支付宝支付 **/
    public static final int PAYWAY_ALIPAY = 1;
    /** 微信支付 **/
    public static final int PAYWAY_WECHAT = 2;

    @ApiModelProperty("车牌号码")
    private String plate;
    @ApiModelProperty("支付方式（1支付宝 2微信）")
    private int payWay;
    @ApiModelProperty(hidden = true)    // 不再swagger中显示
    @JsonIgnoreProperties(ignoreUnknown = true) // 请求不使用该字段
    private String reqIp;   // 请求的ip

    public String getPlate() {
        return plate;
    }

    public void setPlate(String plate) {
        this.plate = plate;
    }

    public int getPayWay() {
        return payWay;
    }

    public void setPayWay(int payWay) {
        this.payWay = payWay;
    }

    public String getReqIp() {
        return reqIp;
    }

    public void setReqIp(String reqIp) {
        this.reqIp = reqIp;
    }
}
